package org.railage.client.gui.main;

import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class MenuBar extends JMenuBar {
	private static final long serialVersionUID = -4821240314362672679L;

	public MenuBar() {

		JMenu mnFile = new JMenu("File");
		add(mnFile);

		JMenuItem mntmExit = new JMenuItem("Exit");
		mntmExit.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				GUI.exit();
			}
		});
		mnFile.add(mntmExit);
	}

}
